package com.ruoyi.cinema.mapper;

import java.util.List;
import com.ruoyi.cinema.domain.SchedulePromo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 排期优惠Mapper接口
 *
 * @author HHAOYU
 * @date 2020-12-13
 */
public interface SchedulePromoMapper extends BaseMapper<SchedulePromo> {
    /**
     * 查询排期优惠
     *
     * @param id 排期优惠ID
     * @return 排期优惠
     */
    public SchedulePromo selectSchedulePromoById(Long id);

    /**
     * 查询排期优惠列表
     *
     * @param schedulePromo 排期优惠
     * @return 排期优惠集合
     */
    public List<SchedulePromo> selectSchedulePromoList(SchedulePromo schedulePromo);

    /**
     * 新增排期优惠
     *
     * @param schedulePromo 排期优惠
     * @return 结果
     */
    public int insertSchedulePromo(SchedulePromo schedulePromo);

    /**
     * 修改排期优惠
     *
     * @param schedulePromo 排期优惠
     * @return 结果
     */
    public int updateSchedulePromo(SchedulePromo schedulePromo);

    /**
     * 删除排期优惠
     *
     * @param id 排期优惠ID
     * @return 结果
     */
    public int deleteSchedulePromoById(Long id);

    /**
     * 批量删除排期优惠
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSchedulePromoByIds(Long[] ids);

    public List<SchedulePromo> selectSchedulePromoAllList(SchedulePromo schedulePromo);
}
